import requests
domain = "https://www.dy2018.com/"
headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
                  "AppleWebKit/537.36 (HTML, like Gecko) Chrome/126.0.0.0 Safari/537.36",
    "cookies": "bid=2lbd8zkzcEc"
}
# verify=False  去掉安全验证
resp = requests.get(domain, headers=headers, verify=False)
# 指定字符集
resp.encoding = "gb2312"
print(resp.text)
